//
//  GW_Tool+time.h
//  IMHuanXin
//
//  Created by 小獾科技 on 2017/7/27.
//  Copyright © 2017年 小獾科技. All rights reserved.
//

#import "GW_Tool.h"

@interface GW_Tool (time)

//时间戳转换成字符串
+ (NSString *)timeStringFromInterval:(NSTimeInterval)timeInterval;

+ (NSString *)timeStringFromUTCDateString:(NSString *)dateString;

// N天前
+ (NSString *)spaceTimeStringFromUTCDateString:(NSString *)dateString;

// 时区相关
+ (NSDate *)getLocalDateFromUTCDateString:(NSString *)dateString;
+ (NSDate *)getLocalDateFromUTCDateString:(NSString *)dateString withFormat:(NSString *)format;
+ (NSDate *)getLocalDateFromUTCDate:(NSDate *)utcDate;

// 获取当前时间
+ (NSDate *)getLocalDate;

/***
 * 获取当前时间
 */
+ (NSString *)getLocalDateString;

@end
